package com.danbay.cloud.lock.device.api.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author yangyanchen on 2017/12/19
 *         Copyright © 2016 －2017 旦倍科技
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DataSyncReportDto {

    @NotBlank(message = "设备ID不允许为空")
    private String deviceId;

    @NotBlank(message = "上报的电池电量不允许为空")
    private Integer power;

    @NotBlank(message = "上报时间不允许为空")
    private String time;

    private String info;

    @NotNull(message = "上报的管家密码数量不允许为空")
    private Integer stewardCap;

    @NotNull(message = "上报的用户密码数量不允许为空")
    private Integer userCap;

    @NotNull(message = "上报的临时密码数量不允许为空")
    private Integer tempCap;

    @NotNull(message = "上报的总密码容量不允许为空")
    private Integer totalCap;

    private Integer voltage;

    private Integer voice;

    private Integer volume;

    private Integer language;

    private Integer passMaturity;

    private Integer happyVoice;

    private Integer safetyAlarm;
}
